package com.vm.osm.business.service.impl;

import com.vm.osm.business.dao.OsmPriorityMapper;
import com.vm.osm.business.dto.rsp.failOrder.Priority;
import com.vm.osm.business.entity.OsmPriority;
import com.vm.osm.business.service.IOsmPriorityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by chenzui on 2018/3/22.
 */
@Service
public class OsmPriorityServiceImpl implements IOsmPriorityService {

    @Autowired
    private OsmPriorityMapper osmPriorityMapper;

    @Override
    public int deleteByPrimaryKey(String id) {
        return osmPriorityMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(OsmPriority record) {
        return osmPriorityMapper.insert(record);
    }

    @Override
    public int insertSelective(OsmPriority record) {
        return osmPriorityMapper.insertSelective(record);
    }

    @Override
    public OsmPriority selectByPrimaryKey(String id) {
        return osmPriorityMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(OsmPriority record) {
        return osmPriorityMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(OsmPriority record) {
        return osmPriorityMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Priority> queryAll() {
        return osmPriorityMapper.queryAll();
    }
}
